# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=goaccess
pkgver=1.6.1
pkgrel=0
pkgdesc="Real-time web log analyzer and interactive viewer"
options="!check" # no test suite
url="https://goaccess.io/"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev geoip-dev glib-dev libmaxminddb-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://tar.goaccess.io/goaccess-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-geoip=mmdb \
		--enable-utf8
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
9ede39be81ed523258431799029b7fceb96b7a962df16af75819effe7045d72bd70dd47bc226ce5561e28d3dd1739e6277a883c2acd8110eeb00cf67d4ec9293  goaccess-1.6.1.tar.gz
"
